package club.dmyang.common.enums;

/**
 * 响应代码枚举
 * Created by brss on 2018/7/14.
 */
public enum RespCodeEnums {
    RESP_CODE_SUCC(0,"成功")
    ,RESP_CODE_ERROR(1,"失败")
    ,GLOBAL_CODE_PARAMETER_ERROR(2,"传入非法参数")
    ,GLOBAL_CODE_DB_INSERT_ERROR(3,"数据库插入失败")
    ,NOT_A_LIST(4,"返回的不是一个List，是一个对象")

    ;

    private Integer code;
    private String msg;

    RespCodeEnums(Integer code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
